public class FinalTest {
    public static void main(String[] args) {
        final double PI=3.14;

        final Student S=new Student("haha",35);
        //地址值不能变，内部的属性可以变
        //S=new Student();  会报错
        S.setName("lala");
        S.setAge(15);
        System.out.println(S.getName()+","+S.getAge());

        final int[] ARR={1,2,3,4,5};
        //ARR=new int[10]; 会报错
        ARR[0]=10;
        ARR[1]=20;

        for (int i = 0; i < ARR.length; i++) {
            System.out.print(ARR[i]+" ");
        }
    }
}
